﻿<Page x:Class="MoreEPG.View.MCToolsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        DataContext="{Binding MCToolsModel, Source={StaticResource Locator}}">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Skins/Theme.xaml" />
                <ResourceDictionary Source="/Skins/MainSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
    <Border x:Name="Border2" Grid.Column="1" Margin="3" BorderBrush="GhostWhite" BorderThickness="1" CornerRadius="10">
    <Grid HorizontalAlignment="Left">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" MinHeight="50"/>
            <RowDefinition Height="Auto" MinHeight="20" />
            <RowDefinition Height="Auto" MinHeight="20" />
            <RowDefinition Height="Auto" MinHeight="20" />
            <RowDefinition Height="Auto" MinHeight="20" />
            <RowDefinition Height="Auto" MinHeight="20" />
            <RowDefinition Height="Auto" MinHeight="20" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" ></ColumnDefinition>
            <ColumnDefinition Width="*" ></ColumnDefinition>
        </Grid.ColumnDefinitions>
            <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5" Content="Media Center Tools :" FontSize="12" HorizontalAlignment="Left" Foreground="White">
                <Label.Effect>
                    <DropShadowEffect></DropShadowEffect>
                </Label.Effect>
            </Label>
            <Button Grid.Row="1" 
                    Grid.Column="0"
                    FontWeight="Bold"
                    Content="Reset MC" 
                    HorizontalAlignment="Right"
                    Width="110" 
                    Height="30" 
                    Style="{DynamicResource RoundedButton}"
                    Margin="10"
                    Command="{Binding ResetMC}"
                    Padding="5"
                    TabIndex="1" 
                                  />
            <Label Grid.Row="1" 
                   Grid.Column="1" 
                   Content="{Loc MCTools_Text1}" 
                   Foreground="OrangeRed" 
                   Margin="5"
                   FontSize="12" 
                   FontWeight="Bold" 
                   HorizontalAlignment="Left" 
                   VerticalAlignment="Center" />

            <Button Grid.Row="2" 
                    FontWeight="Bold"
                    Content="Reset EPG" 
                    HorizontalAlignment="Right"
                    Width="110" 
                    Height="30" 
                    Style="{DynamicResource RoundedButton}"
                    Margin="10"
                    Command="{Binding ResetEPG}"
                    Padding="5"
                    TabIndex="1" 
                    />
        <Label Grid.Row="2" 
               Grid.Column="1" 
               Content="{Loc MCTools_Text2}" 
               Foreground="OrangeRed" 
               Margin="5"
               FontSize="12" 
               FontWeight="Bold" 
               HorizontalAlignment="Left" 
               VerticalAlignment="Center" />
        <Button Grid.Row="3" 
                Content="Reindex EPG"
                FontWeight="Bold"
                HorizontalAlignment="Right"
                Width="110" 
                Height="30" 
                Background="LightSteelBlue"
                Style="{DynamicResource RoundedButton}"
                Margin="10"
                Command="{Binding ReindexEPG}"
                Padding="5"
                TabIndex="1" 
                />
        <Label Grid.Row="3" 
               Grid.Column="1" 
               Content="{Loc MCTools_Text3}" 
               Foreground="Black" 
               Margin="5"
               FontSize="12" 
               FontWeight="Bold" 
               HorizontalAlignment="Left" 
               VerticalAlignment="Center" />
        <Button Grid.Row="4" 
                Content="Logos Löschen" 
                FontWeight="Bold"
                HorizontalAlignment="Right"
                Width="110" 
                Height="30" 
                Background="LightSteelBlue"
                Style="{DynamicResource RoundedButton}"
                Margin="10"
                Command="{Binding DelLogos}"
                Padding="5"
                TabIndex="1" 
                />
        <Label Grid.Row="4" 
               Grid.Column="1" 
               Content="{Loc MCTools_Text4}" 
               Foreground="Black" 
               Margin="5"
               FontSize="12" 
               FontWeight="Bold" 
               HorizontalAlignment="Left" 
               VerticalAlignment="Center" />
        <Button Grid.Row="5" 
                Content="Channels Löschen" 
                FontWeight="Bold"
                HorizontalAlignment="Right"
                Width="110" 
                Height="30" 
                Background="LightSteelBlue"
                Style="{DynamicResource RoundedButton}"
                Margin="10"
                Command="{Binding DelChannels}"
                Padding="5"
                TabIndex="1" 
                />
        <Label Grid.Row="5" 
               Grid.Column="1" 
               Content="{Loc MCTools_Text5}" 
               Foreground="Black" 
               Margin="5"
               FontSize="12" 
               FontWeight="Bold" 
               HorizontalAlignment="Left" 
               VerticalAlignment="Center" />

            <Label Grid.Row="6" Grid.ColumnSpan="2" Margin="5" Content="{Loc Wait}" Visibility="{Binding visibility,Converter={StaticResource bool2visibility}}" FontSize="12" FontWeight="Bold" HorizontalAlignment="Left" Foreground="OrangeRed">
            <Label.Effect>
                <DropShadowEffect></DropShadowEffect>
            </Label.Effect>
        </Label>
    </Grid>
    </Border>
</Page>
